package b_state.a_origin;

/**
 * Created by wug on 2016/6/13 0013.
 */
public class MainTest {
    public static void main(String[] args) {
        WaterMachine waterMachine = new WaterMachine();
        waterMachine.workerPut();

        waterMachine.insertMoney(1);
        waterMachine.pressSellBtn();

        waterMachine.insertMoney(5);
        waterMachine.pressSellBtn();

        waterMachine.refundRocker();
        waterMachine.refundRocker();

        waterMachine.insertMoney(100);
        for (int i = 0; i < 12; i++) {
            waterMachine.pressSellBtn();
        }
        waterMachine.refundRocker();


        waterMachine.workerPut();
        waterMachine.insertMoney(100);
        for (int i = 0; i < 12; i++) {
            waterMachine.pressSellBtn();
        }
        waterMachine.refundRocker();
    }
}
